\doxysubsubsubsection{IO operation functions }
\hypertarget{group___s_p_i___exported___functions___group2}{}\label{group___s_p_i___exported___functions___group2}\index{IO operation functions@{IO operation functions}}
\doxysubsubsubsubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{group___s_p_i___exported___functions___group2_gaca4b7bb29640435fb30d7eb89ce0fd62}\label{group___s_p_i___exported___functions___group2_gaca4b7bb29640435fb30d7eb89ce0fd62} 
\mbox{\hyperlink{stm32h7xx__hal__def_8h_a63c0679d1cb8b8c684fbb0632743478f}{HAL\+\_\+\+Status\+Type\+Def}} {\bfseries HAL\+\_\+\+SPI\+\_\+\+Transmit} (\mbox{\hyperlink{group___s_p_i___exported___types_gab633e49dd034de2f3a1fe79853d78d18}{SPI\+\_\+\+Handle\+Type\+Def}} \texorpdfstring{$\ast$}{*}hspi, const uint8\+\_\+t \texorpdfstring{$\ast$}{*}p\+Data, uint16\+\_\+t Size, uint32\+\_\+t Timeout)
\item 
\Hypertarget{group___s_p_i___exported___functions___group2_gafdf43dbe4e5ef225bed6650b6e8c6313}\label{group___s_p_i___exported___functions___group2_gafdf43dbe4e5ef225bed6650b6e8c6313} 
\mbox{\hyperlink{stm32h7xx__hal__def_8h_a63c0679d1cb8b8c684fbb0632743478f}{HAL\+\_\+\+Status\+Type\+Def}} {\bfseries HAL\+\_\+\+SPI\+\_\+\+Receive} (\mbox{\hyperlink{group___s_p_i___exported___types_gab633e49dd034de2f3a1fe79853d78d18}{SPI\+\_\+\+Handle\+Type\+Def}} \texorpdfstring{$\ast$}{*}hspi, uint8\+\_\+t \texorpdfstring{$\ast$}{*}p\+Data, uint16\+\_\+t Size, uint32\+\_\+t Timeout)
\item 
\Hypertarget{group___s_p_i___exported___functions___group2_ga806db11431c61c963eb7ed8025e58f70}\label{group___s_p_i___exported___functions___group2_ga806db11431c61c963eb7ed8025e58f70} 
\mbox{\hyperlink{stm32h7xx__hal__def_8h_a63c0679d1cb8b8c684fbb0632743478f}{HAL\+\_\+\+Status\+Type\+Def}} {\bfseries HAL\+\_\+\+SPI\+\_\+\+Transmit\+Receive} (\mbox{\hyperlink{group___s_p_i___exported___types_gab633e49dd034de2f3a1fe79853d78d18}{SPI\+\_\+\+Handle\+Type\+Def}} \texorpdfstring{$\ast$}{*}hspi, const uint8\+\_\+t \texorpdfstring{$\ast$}{*}p\+Tx\+Data, uint8\+\_\+t \texorpdfstring{$\ast$}{*}p\+Rx\+Data, uint16\+\_\+t Size, uint32\+\_\+t Timeout)
\item 
\Hypertarget{group___s_p_i___exported___functions___group2_ga96859ed0a0b5571ecaa958780fb19700}\label{group___s_p_i___exported___functions___group2_ga96859ed0a0b5571ecaa958780fb19700} 
\mbox{\hyperlink{stm32h7xx__hal__def_8h_a63c0679d1cb8b8c684fbb0632743478f}{HAL\+\_\+\+Status\+Type\+Def}} {\bfseries HAL\+\_\+\+SPI\+\_\+\+Transmit\+\_\+\+IT} (\mbox{\hyperlink{group___s_p_i___exported___types_gab633e49dd034de2f3a1fe79853d78d18}{SPI\+\_\+\+Handle\+Type\+Def}} \texorpdfstring{$\ast$}{*}hspi, const uint8\+\_\+t \texorpdfstring{$\ast$}{*}p\+Data, uint16\+\_\+t Size)
\item 
\Hypertarget{group___s_p_i___exported___functions___group2_gaaae0af2e2db7e7549b52b020a18f6168}\label{group___s_p_i___exported___functions___group2_gaaae0af2e2db7e7549b52b020a18f6168} 
\mbox{\hyperlink{stm32h7xx__hal__def_8h_a63c0679d1cb8b8c684fbb0632743478f}{HAL\+\_\+\+Status\+Type\+Def}} {\bfseries HAL\+\_\+\+SPI\+\_\+\+Receive\+\_\+\+IT} (\mbox{\hyperlink{group___s_p_i___exported___types_gab633e49dd034de2f3a1fe79853d78d18}{SPI\+\_\+\+Handle\+Type\+Def}} \texorpdfstring{$\ast$}{*}hspi, uint8\+\_\+t \texorpdfstring{$\ast$}{*}p\+Data, uint16\+\_\+t Size)
\item 
\Hypertarget{group___s_p_i___exported___functions___group2_ga3bde00f3764556ef6050bea913269946}\label{group___s_p_i___exported___functions___group2_ga3bde00f3764556ef6050bea913269946} 
\mbox{\hyperlink{stm32h7xx__hal__def_8h_a63c0679d1cb8b8c684fbb0632743478f}{HAL\+\_\+\+Status\+Type\+Def}} {\bfseries HAL\+\_\+\+SPI\+\_\+\+Transmit\+Receive\+\_\+\+IT} (\mbox{\hyperlink{group___s_p_i___exported___types_gab633e49dd034de2f3a1fe79853d78d18}{SPI\+\_\+\+Handle\+Type\+Def}} \texorpdfstring{$\ast$}{*}hspi, const uint8\+\_\+t \texorpdfstring{$\ast$}{*}p\+Tx\+Data, uint8\+\_\+t \texorpdfstring{$\ast$}{*}p\+Rx\+Data, uint16\+\_\+t Size)
\item 
\Hypertarget{group___s_p_i___exported___functions___group2_gac48467984880755e9632f914e8576007}\label{group___s_p_i___exported___functions___group2_gac48467984880755e9632f914e8576007} 
\mbox{\hyperlink{stm32h7xx__hal__def_8h_a63c0679d1cb8b8c684fbb0632743478f}{HAL\+\_\+\+Status\+Type\+Def}} {\bfseries HAL\+\_\+\+SPI\+\_\+\+Transmit\+\_\+\+DMA} (\mbox{\hyperlink{group___s_p_i___exported___types_gab633e49dd034de2f3a1fe79853d78d18}{SPI\+\_\+\+Handle\+Type\+Def}} \texorpdfstring{$\ast$}{*}hspi, const uint8\+\_\+t \texorpdfstring{$\ast$}{*}p\+Data, uint16\+\_\+t Size)
\item 
\Hypertarget{group___s_p_i___exported___functions___group2_ga626bb2ec54e7b6ff9bd5d807ae6e6e24}\label{group___s_p_i___exported___functions___group2_ga626bb2ec54e7b6ff9bd5d807ae6e6e24} 
\mbox{\hyperlink{stm32h7xx__hal__def_8h_a63c0679d1cb8b8c684fbb0632743478f}{HAL\+\_\+\+Status\+Type\+Def}} {\bfseries HAL\+\_\+\+SPI\+\_\+\+Receive\+\_\+\+DMA} (\mbox{\hyperlink{group___s_p_i___exported___types_gab633e49dd034de2f3a1fe79853d78d18}{SPI\+\_\+\+Handle\+Type\+Def}} \texorpdfstring{$\ast$}{*}hspi, uint8\+\_\+t \texorpdfstring{$\ast$}{*}p\+Data, uint16\+\_\+t Size)
\item 
\Hypertarget{group___s_p_i___exported___functions___group2_gaf94b75cd52be2dc144867bd4be5f4a90}\label{group___s_p_i___exported___functions___group2_gaf94b75cd52be2dc144867bd4be5f4a90} 
\mbox{\hyperlink{stm32h7xx__hal__def_8h_a63c0679d1cb8b8c684fbb0632743478f}{HAL\+\_\+\+Status\+Type\+Def}} {\bfseries HAL\+\_\+\+SPI\+\_\+\+Transmit\+Receive\+\_\+\+DMA} (\mbox{\hyperlink{group___s_p_i___exported___types_gab633e49dd034de2f3a1fe79853d78d18}{SPI\+\_\+\+Handle\+Type\+Def}} \texorpdfstring{$\ast$}{*}hspi, const uint8\+\_\+t \texorpdfstring{$\ast$}{*}p\+Tx\+Data, uint8\+\_\+t \texorpdfstring{$\ast$}{*}p\+Rx\+Data, uint16\+\_\+t Size)
\item 
\Hypertarget{group___s_p_i___exported___functions___group2_ga61e4a628d6918ec838736d65ae135031}\label{group___s_p_i___exported___functions___group2_ga61e4a628d6918ec838736d65ae135031} 
\mbox{\hyperlink{stm32h7xx__hal__def_8h_a63c0679d1cb8b8c684fbb0632743478f}{HAL\+\_\+\+Status\+Type\+Def}} {\bfseries HAL\+\_\+\+SPI\+\_\+\+DMAPause} (\mbox{\hyperlink{group___s_p_i___exported___types_gab633e49dd034de2f3a1fe79853d78d18}{SPI\+\_\+\+Handle\+Type\+Def}} \texorpdfstring{$\ast$}{*}hspi)
\item 
\Hypertarget{group___s_p_i___exported___functions___group2_ga7fdd4b7aa5c6bd560a476c833f546d93}\label{group___s_p_i___exported___functions___group2_ga7fdd4b7aa5c6bd560a476c833f546d93} 
\mbox{\hyperlink{stm32h7xx__hal__def_8h_a63c0679d1cb8b8c684fbb0632743478f}{HAL\+\_\+\+Status\+Type\+Def}} {\bfseries HAL\+\_\+\+SPI\+\_\+\+DMAResume} (\mbox{\hyperlink{group___s_p_i___exported___types_gab633e49dd034de2f3a1fe79853d78d18}{SPI\+\_\+\+Handle\+Type\+Def}} \texorpdfstring{$\ast$}{*}hspi)
\item 
\Hypertarget{group___s_p_i___exported___functions___group2_ga7e01eb529af91fabc950180b927fa355}\label{group___s_p_i___exported___functions___group2_ga7e01eb529af91fabc950180b927fa355} 
\mbox{\hyperlink{stm32h7xx__hal__def_8h_a63c0679d1cb8b8c684fbb0632743478f}{HAL\+\_\+\+Status\+Type\+Def}} {\bfseries HAL\+\_\+\+SPI\+\_\+\+DMAStop} (\mbox{\hyperlink{group___s_p_i___exported___types_gab633e49dd034de2f3a1fe79853d78d18}{SPI\+\_\+\+Handle\+Type\+Def}} \texorpdfstring{$\ast$}{*}hspi)
\item 
\Hypertarget{group___s_p_i___exported___functions___group2_ga11c74b1d91d88ff336f674f6376cc904}\label{group___s_p_i___exported___functions___group2_ga11c74b1d91d88ff336f674f6376cc904} 
\mbox{\hyperlink{stm32h7xx__hal__def_8h_a63c0679d1cb8b8c684fbb0632743478f}{HAL\+\_\+\+Status\+Type\+Def}} {\bfseries HAL\+\_\+\+SPI\+\_\+\+Abort} (\mbox{\hyperlink{group___s_p_i___exported___types_gab633e49dd034de2f3a1fe79853d78d18}{SPI\+\_\+\+Handle\+Type\+Def}} \texorpdfstring{$\ast$}{*}hspi)
\item 
\Hypertarget{group___s_p_i___exported___functions___group2_ga75d7782876ed13b9f8aebfa8dbba5a1c}\label{group___s_p_i___exported___functions___group2_ga75d7782876ed13b9f8aebfa8dbba5a1c} 
\mbox{\hyperlink{stm32h7xx__hal__def_8h_a63c0679d1cb8b8c684fbb0632743478f}{HAL\+\_\+\+Status\+Type\+Def}} {\bfseries HAL\+\_\+\+SPI\+\_\+\+Abort\+\_\+\+IT} (\mbox{\hyperlink{group___s_p_i___exported___types_gab633e49dd034de2f3a1fe79853d78d18}{SPI\+\_\+\+Handle\+Type\+Def}} \texorpdfstring{$\ast$}{*}hspi)
\item 
\Hypertarget{group___s_p_i___exported___functions___group2_gaf3da6e0a87468bc039b578c21329df47}\label{group___s_p_i___exported___functions___group2_gaf3da6e0a87468bc039b578c21329df47} 
void {\bfseries HAL\+\_\+\+SPI\+\_\+\+IRQHandler} (\mbox{\hyperlink{group___s_p_i___exported___types_gab633e49dd034de2f3a1fe79853d78d18}{SPI\+\_\+\+Handle\+Type\+Def}} \texorpdfstring{$\ast$}{*}hspi)
\item 
\Hypertarget{group___s_p_i___exported___functions___group2_ga0a99ab4f6aa6ee7dc2abca5483910dde}\label{group___s_p_i___exported___functions___group2_ga0a99ab4f6aa6ee7dc2abca5483910dde} 
void {\bfseries HAL\+\_\+\+SPI\+\_\+\+Tx\+Cplt\+Callback} (\mbox{\hyperlink{group___s_p_i___exported___types_gab633e49dd034de2f3a1fe79853d78d18}{SPI\+\_\+\+Handle\+Type\+Def}} \texorpdfstring{$\ast$}{*}hspi)
\item 
void \mbox{\hyperlink{group___s_p_i___exported___functions___group2_ga3df7021fe24cf874f8b1eec5bd5f4cb3}{HAL\+\_\+\+SPI\+\_\+\+Rx\+Cplt\+Callback}} (\mbox{\hyperlink{group___s_p_i___exported___types_gab633e49dd034de2f3a1fe79853d78d18}{SPI\+\_\+\+Handle\+Type\+Def}} \texorpdfstring{$\ast$}{*}hspi)
\begin{DoxyCompactList}\small\item\em 当\+SPI接收完成,将会调用此回调函数,可以进行协议解析或其他必须的数据处理等 \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group___s_p_i___exported___functions___group2_ga04e63f382f172164c8e7cae4ff5d883c}{HAL\+\_\+\+SPI\+\_\+\+Tx\+Rx\+Cplt\+Callback}} (\mbox{\hyperlink{group___s_p_i___exported___types_gab633e49dd034de2f3a1fe79853d78d18}{SPI\+\_\+\+Handle\+Type\+Def}} \texorpdfstring{$\ast$}{*}hspi)
\begin{DoxyCompactList}\small\item\em 和\+Rx\+Cplt\+Callback共用解析即可,这里只是形式上封装一下,不用重复写 这是对\+HAL库的\+\_\+\+\_\+weak函数的重写,传输使用\+IT或\+DMA模式,在传输完成时会调用此函数 \end{DoxyCompactList}\item 
\Hypertarget{group___s_p_i___exported___functions___group2_ga931ef2f7fd94ffa16ec431972b1b237f}\label{group___s_p_i___exported___functions___group2_ga931ef2f7fd94ffa16ec431972b1b237f} 
void {\bfseries HAL\+\_\+\+SPI\+\_\+\+Tx\+Half\+Cplt\+Callback} (\mbox{\hyperlink{group___s_p_i___exported___types_gab633e49dd034de2f3a1fe79853d78d18}{SPI\+\_\+\+Handle\+Type\+Def}} \texorpdfstring{$\ast$}{*}hspi)
\item 
\Hypertarget{group___s_p_i___exported___functions___group2_gacf622756a3814edfacf449b5749b048a}\label{group___s_p_i___exported___functions___group2_gacf622756a3814edfacf449b5749b048a} 
void {\bfseries HAL\+\_\+\+SPI\+\_\+\+Rx\+Half\+Cplt\+Callback} (\mbox{\hyperlink{group___s_p_i___exported___types_gab633e49dd034de2f3a1fe79853d78d18}{SPI\+\_\+\+Handle\+Type\+Def}} \texorpdfstring{$\ast$}{*}hspi)
\item 
\Hypertarget{group___s_p_i___exported___functions___group2_gab46e2325b0880d5b5a301792438b151b}\label{group___s_p_i___exported___functions___group2_gab46e2325b0880d5b5a301792438b151b} 
void {\bfseries HAL\+\_\+\+SPI\+\_\+\+Tx\+Rx\+Half\+Cplt\+Callback} (\mbox{\hyperlink{group___s_p_i___exported___types_gab633e49dd034de2f3a1fe79853d78d18}{SPI\+\_\+\+Handle\+Type\+Def}} \texorpdfstring{$\ast$}{*}hspi)
\item 
\Hypertarget{group___s_p_i___exported___functions___group2_ga3db7835e7e7ac335887f62fedf156926}\label{group___s_p_i___exported___functions___group2_ga3db7835e7e7ac335887f62fedf156926} 
void {\bfseries HAL\+\_\+\+SPI\+\_\+\+Error\+Callback} (\mbox{\hyperlink{group___s_p_i___exported___types_gab633e49dd034de2f3a1fe79853d78d18}{SPI\+\_\+\+Handle\+Type\+Def}} \texorpdfstring{$\ast$}{*}hspi)
\item 
\Hypertarget{group___s_p_i___exported___functions___group2_ga4a2593ec36fa4def11929e65f631f3cf}\label{group___s_p_i___exported___functions___group2_ga4a2593ec36fa4def11929e65f631f3cf} 
void {\bfseries HAL\+\_\+\+SPI\+\_\+\+Abort\+Cplt\+Callback} (\mbox{\hyperlink{group___s_p_i___exported___types_gab633e49dd034de2f3a1fe79853d78d18}{SPI\+\_\+\+Handle\+Type\+Def}} \texorpdfstring{$\ast$}{*}hspi)
\item 
\Hypertarget{group___s_p_i___exported___functions___group2_ga054dfb4bb84fa4d30cdad6915242e9d1}\label{group___s_p_i___exported___functions___group2_ga054dfb4bb84fa4d30cdad6915242e9d1} 
void {\bfseries HAL\+\_\+\+SPI\+\_\+\+Suspend\+Callback} (\mbox{\hyperlink{group___s_p_i___exported___types_gab633e49dd034de2f3a1fe79853d78d18}{SPI\+\_\+\+Handle\+Type\+Def}} \texorpdfstring{$\ast$}{*}hspi)
\end{DoxyCompactItemize}


\doxysubsubsubsubsection{Detailed Description}


\label{doc-func-members}
\Hypertarget{group___s_p_i___exported___functions___group2_doc-func-members}
\doxysubsubsubsubsection{Function Documentation}
\Hypertarget{group___s_p_i___exported___functions___group2_ga3df7021fe24cf874f8b1eec5bd5f4cb3}\index{IO operation functions@{IO operation functions}!HAL\_SPI\_RxCpltCallback@{HAL\_SPI\_RxCpltCallback}}
\index{HAL\_SPI\_RxCpltCallback@{HAL\_SPI\_RxCpltCallback}!IO operation functions@{IO operation functions}}
\doxysubsubsubsubsubsection{\texorpdfstring{HAL\_SPI\_RxCpltCallback()}{HAL\_SPI\_RxCpltCallback()}}
{\footnotesize\ttfamily \label{group___s_p_i___exported___functions___group2_ga3df7021fe24cf874f8b1eec5bd5f4cb3} 
void HAL\+\_\+\+SPI\+\_\+\+Rx\+Cplt\+Callback (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group___s_p_i___exported___types_gab633e49dd034de2f3a1fe79853d78d18}{SPI\+\_\+\+Handle\+Type\+Def}} \texorpdfstring{$\ast$}{*}}]{hspi}{}\end{DoxyParamCaption})}



当\+SPI接收完成,将会调用此回调函数,可以进行协议解析或其他必须的数据处理等 


\begin{DoxyParams}{Parameters}
{\em hspi} & spi handle \\
\hline
\end{DoxyParams}
\Hypertarget{group___s_p_i___exported___functions___group2_ga04e63f382f172164c8e7cae4ff5d883c}\index{IO operation functions@{IO operation functions}!HAL\_SPI\_TxRxCpltCallback@{HAL\_SPI\_TxRxCpltCallback}}
\index{HAL\_SPI\_TxRxCpltCallback@{HAL\_SPI\_TxRxCpltCallback}!IO operation functions@{IO operation functions}}
\doxysubsubsubsubsubsection{\texorpdfstring{HAL\_SPI\_TxRxCpltCallback()}{HAL\_SPI\_TxRxCpltCallback()}}
{\footnotesize\ttfamily \label{group___s_p_i___exported___functions___group2_ga04e63f382f172164c8e7cae4ff5d883c} 
void HAL\+\_\+\+SPI\+\_\+\+Tx\+Rx\+Cplt\+Callback (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{group___s_p_i___exported___types_gab633e49dd034de2f3a1fe79853d78d18}{SPI\+\_\+\+Handle\+Type\+Def}} \texorpdfstring{$\ast$}{*}}]{hspi}{}\end{DoxyParamCaption})}



和\+Rx\+Cplt\+Callback共用解析即可,这里只是形式上封装一下,不用重复写 这是对\+HAL库的\+\_\+\+\_\+weak函数的重写,传输使用\+IT或\+DMA模式,在传输完成时会调用此函数 


\begin{DoxyParams}{Parameters}
{\em hspi} & spi handle \\
\hline
\end{DoxyParams}
